package com.qztech.sdk.model.entities;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Index;
import androidx.room.PrimaryKey;
import androidx.annotation.NonNull;

/**
 * @author:zhanghb
 * @date:2019/1/25
 * @email:2573475062@qq.com
 **/
@Entity(tableName = "user_profile", indices = {
        @Index(value = "name", unique = true),
        @Index(value = "pid", unique = true)
})
public class UserProfile implements Cloneable{

    @PrimaryKey(autoGenerate = true)
    private long id;

    @ColumnInfo
    @NonNull
    private String pid;

    @ColumnInfo
    @NonNull
    private String name;

    @ColumnInfo
    @NonNull
    private long createTime;

    @ColumnInfo
    private int grouping1;
    @ColumnInfo
    private int grouping2;
    @ColumnInfo
    private int grouping3;
    @ColumnInfo
    private int mode;


    public UserProfile() {

    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @NonNull
    public String getName() {
        return name;
    }

    public void setName(@NonNull String name) {
        this.name = name;
    }

    @NonNull
    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(@NonNull long createTime) {
        this.createTime = createTime;
    }

    public int getGrouping1() {
        return grouping1;
    }

    public void setGrouping1(int grouping1) {
        this.grouping1 = grouping1;
    }

    public int getGrouping2() {
        return grouping2;
    }

    public void setGrouping2(int grouping2) {
        this.grouping2 = grouping2;
    }

    public int getGrouping3() {
        return grouping3;
    }

    public void setGrouping3(int grouping3) {
        this.grouping3 = grouping3;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    @NonNull
    public String getPid() {
        return pid;
    }

    public void setPid(@NonNull String pid) {
        this.pid = pid;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
